using System;
using System.Data;
using System.Xml;

using OR.Reuse;
using OR.Reuse.Persistence;

namespace OR.Lazarus.Library.DataTier.Source
{
   public class ParameterDetail : OR.Lazarus.Library.DataTier.Source.Lazarus.ParameterDetail
   {
      private bool mRequired;

      public bool Required
      {
         get { return mRequired; }
         set { mRequired = value; }
      }

      public override void LoadXml( XmlElement pSource )
      {
         base.LoadXml( pSource );

         mRequired = DataUtility.GetBool( pSource, "required", false );
      }

      public override XmlElement SaveXml( XmlDocument p_docContext )
      {
         XmlElement vReturn = base.SaveXml( p_docContext );

         vReturn.SetAttribute( "required", mRequired.ToString() );

         return ( vReturn );
      }
   }
}
   